package com.link.base.base.interstatistics.dao.mybatis.mapper;

import com.link.base.base.interstatistics.model.ReportInfo;
import com.link.base.base.interstatistics.model.ReportParam;
import com.link.base.base.interstatistics.model.VisitInfo;
import com.link.base.base.interstatistics.model.VisitStatistics;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * @author: 王艳
 * @date: 2018-12-13
 * @comments:
 */
public interface VisitInfoMapper extends BasicMapper<VisitInfo> {

    /**
     * 将访问历史记录写入数据库
     *
     * @param list
     * @throws Exception
     */
    public void insertVisitStatistics(List<VisitStatistics> list) throws Exception;

    /**
     * 报表查询
     *
     * @param reportParam
     * @throws Exception
     */
    public List<ReportInfo> getCountRes(ReportParam reportParam) throws Exception;

    /**
     * 查询正常访问量
     *
     * @param reportParam
     * @throws Exception
     */
    public List<ReportInfo> getNormalCountRes(ReportParam reportParam) throws Exception;

    /**
     * 根据日期查询报表
     *
     * @param reportParam
     * @throws Exception
     */
    public List<VisitStatistics> queryVisitStatistics(ReportParam reportParam) throws Exception;

    List<ReportInfo> getReqAvgConsumeTime(ReportParam reportParam);
}
